package com.sso.credential;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;
import org.apereo.cas.authentication.credential.UsernamePasswordCredential;

import javax.validation.constraints.Size;

/**
 * 类 {@code CustomCredential} 在该定制版中将增加验证码的验证字段 <br> 定制版的credential.
 *
 * <p>详细描述
 * <p>
 *
 * @author <a href="mailto:lz2392504@gmail.com">CN華少</a>
 * @TODO 代办事项的标记
 * @see UsernamePasswordCredential
 * @since v1.0.0
 */
@Slf4j
@EqualsAndHashCode(callSuper=false)
@Data
public class CustomCredential extends UsernamePasswordCredential {

    @Size(min = 4,message = "require captcha")
    private String captcha;
}
